package com.jingdianjichi.auth.domain.convert;

import com.jingdianjichi.auth.domain.bo.AuthUserBO;
import com.jingdianjichi.auth.infra.bastic.entity.AuthRole;
import com.jingdianjichi.auth.infra.bastic.entity.AuthUser;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * ClassName:AuthUserBOConvert
 * Package:com.jingdianjichi.auth.domain.convert
 * Description:
 *
 * @Author fst
 * @Create 2024/10/10 13:40
 * @Version 1.0
 */
@Mapper
public interface AuthUserBOConvert
{
    AuthUserBOConvert INSTANCE = Mappers.getMapper(AuthUserBOConvert.class);


    AuthUser convertBOTOUser(AuthUserBO authUserBO);

    AuthUserBO convertUserTOBO(AuthUser authUser);

    List<AuthUserBO> convertUserTOBOlist(List<AuthUser> userlist);
}
